import com.bite.www.TextDemo;
import java.util.*;
class Student{
    private String name;
    private int age;
    private String stuNum;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public Student(String name, int age, String stuNum) {
        setName(name);
        setAge(age);
        setStuNum(stuNum);
    }
    public void print(){
        fun();
        System.out.println(this.name+" "+this.age+" "+this.stuNum);
    }
    private void fun(){
        System.out.println("封装");
    }
}
public class Text {
    public static void main(String[] args) {
        Student student=new Student("zhangsan",10,"2024003");
        student.print();
        TextDemo textDemo=new TextDemo("suzhou",24,"2020210158");
        TextDemo textDemo2=new TextDemo("lisi",23,"2020212345");

        textDemo.text();
        //System.out.println(textDemo.a);
        TextDemo.classmane="1班";
        //System.out.println(TextDemo.classmane);
        textDemo.show();
        textDemo2.show();
    }
}